﻿package org.dm.3d.Actions.object 
{
	import org.dm.3d.Actions.Action;
	import org.dm.3d.geom.Num3D;
	
	/**
	 * ...
	 * @author Scott
	 */
	public class Random extends Action
	{
		
		public function Random() 
		{
			this.isUsed = true;
		}
		public override function update(items:Array,num:uint):void 
		{
			for (var i:uint = 0; i < num; i++)
			{
				items[i].acceleration = new Num3D((Math.random()-.5)*.1, (Math.random()-.5)*.1, (Math.random()-.5)*.1);
			}
		}
	}
	
}